Jump to content

- PBXScript

- # PBXScript.CreateObject

  Followers 0

  VBScript

  This function creates an instance of the given COM object.

      PBXScript.CreateObject ( sObjectName )

  This functions returns an object.

  This function is identical to the VBScript build-in function CreateObject.

  Example:

      ' create an ADODB.Connection object
      Dim oDB
      Set oDB = PBXScript.CreateObject ("ADODB.Connection")

  Don't forget to release the object again, once it is not needed anymore.

      Set oDB = Nothing

  By Tom Wellige

  - May 16, 2022
  Share
  Share
  Followers 0

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.